package com.k7.mobile.platform.dataobject;

import java.util.Date;

import com.k7.mobile.platform.dataobject.BaseDO;
import com.k7.mobile.platform.web.support.RedisConstants;

/**
 * 下载排行表(cmstop_sj_ranking)
 * 
 * @author nandi.ldl
 * @version  RankingDO.java 2013-4-16 10:57:48
 * 
 */
public class RankingDO extends BaseDO  {

	private static final long serialVersionUID = 1L;
	
	private Integer gid; //游戏ID
	private Integer num; //下载次数
	private Integer typeId; //排行类型0周排行 1月排行


	public Integer getGid(){
		return gid;
	}
	public void setGid(Integer gid) {
		this.gid = gid;
	}
	public Integer getNum(){
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public Integer getTypeId() {
		return typeId;
	}
	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}
	@Override
	public String genCacheKey() {
		return this.getGid() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getTypeId() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getPerPageSize() + RedisConstants.DEFAULT_CACHE_FIELD_SEPARATOR+ 
				this.getToPage();
	}

	
}
